﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GameCode.Models.Admin
{
    public class GameCodeModel:BaseModel
    {
        public List<GameCodeData> List { get; set; }
    }

    public class GameCodeData
    {
        public Guid ID { get; set; }
        public string ProjectNr { get; set; }
        public string GameName { get; set; }
        public string ProjectName { get; set; }

        public GameProject Source { get; set; }

        public int CodeTotal { get; set; }
        public int AvailableCodeTotal { get; set; }

        public string CodeText
        {
            get
            { 
                return string.Format("{0}/{1}",AvailableCodeTotal.ToString(),CodeTotal.ToString());
            }
        }

    }
}